//获取应用实例
const app = getApp()

Page({
 
    /**
     * 页面的初始数据
     */
    data: {
     userInfo:[],
    },
 
    /**
     * 生命周期函数--监听页面加载
     */
    onLoad: function (option) {
      var that = this;
      const id = option.id;
      wx.request({
        url: 'http://jbc.com/System/User/manager_detail',
        method: 'POST',
        dataType: 'json',
        data: {
          id: id,
        },
        header: {
          'content-type': 'application/json'
        },
        success: function (res) {
          if (res.data.code > 0) {
            const jsons = res.data.data; 
            that.setData({
              userInfo: jsons,
            });

          } else {
            //alert(res.data.msg);
          }
        }
      });

    }
 
})
